package roborally;

public class Statement {
	
	private String stringForm = "defaultStringForm";
	
	public String getStringForm(){
		return stringForm;
	}
	
	public void setStringForm(String s){
		this.stringForm = s;
	}
	
	public void execute(Robot robot){
		// Must be overridden by subclasses for which it is appropriate.
		System.out.println("Error ["+this.getStringForm()+"] You cannot execute a condition. Please use validate().");
	}
	
	public boolean validate(Placeable placeable){
		// Must be overridden by subclasses for which it is appropriate.
		System.out.println("Error ["+this.getStringForm()+"] You cannot validate a command. Please use execute().");
		return false;
	}

}
